home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / which100.zip / WHICH.DOC < prev   
Text File  |  1993-03-12  |  2KB  |  57 lines

  1.  
  2. WHICH(1)                 USER COMMANDS                   WHICH(1)
  3.  
  4. NAME
  5.      which - locate commands
  6.  
  7. SYNOPSIS
  8.      which command [ command ... ]
  9.  
  10. ARGUMENTS
  11.      command  Command or list of commands to locate.
  12.  
  13. DESCRIPTION
  14.      which checks, in order, a  list  of  internal  command-shell
  15.      commands,  the  current directory, and directories specified
  16.      in the user's PATH variable for the commands  given  as  its
  17.      arguments.   If  a  given command is found, its full path is
  18.      printed; otherwise a ``not found'' message is printed with a
  19.      list of the directories which were checked.  In the case the
  20.      command is an internal shell  command,  a  message  to  this
  21.      effect is printed in lieu of a path.
  22.  
  23.      which respects the shell precedence of  command  extensions;
  24.      thus  more.com  is  listed  instead of more.exe, should both
  25.      exist in the same directory.  Likewise, .exe files have pre-
  26.      cedence  over .cmd files, and .cmd files over .bat files.  A
  27.      command with a dot in  its  name  has  precedence  over  any
  28.      default  extension;  for  example,  list.old is found before
  29.      list.old.exe.
  30.  
  31. EXAMPLE
  32.      The following command lists the locations of four commands:
  33.  
  34.           which dir format unzip zipinfo
  35.  
  36.           dir:  OS/2 command-shell internal command
  37.           c:\os2\format.com
  38.           c:\utils\32\unzip.exe
  39.           no zipinfo in . c:\os2 c:\utils\32 c:\utils\16 c:\utils\bnd
  40.             c:\os2\system c:\emx\bin c:\groff\bin c:\os2\mdos\winos2
  41.             c:\os2\install c:\ c:\os2\mdos c:\os2\apps c:\ibmtk\os2bin
  42.             c:\ibmwf\bin c:\ibmc\bin
  43.  
  44. SEE ALSO
  45.      csh(1)
  46.  
  47. BUGS
  48.      The list of internal shell commands is static and  does  not
  49.      reflect  differences  between  various  versions,  including
  50.      third-party shells such as 4OS2 (or 4DOS).
  51.  
  52. AUTHOR
  53.      Greg Roelofs (also known as Cave Newt).   The  makefile  was
  54.      liberally borrowed from Kai Uwe Rommel's UnZip makefile.
  55.  
  56. Newtware          Last change: 12 Mar 93 (v1.0)                 1
  57.